import React, { Component } from 'react'
import Search from './components/Search'
import List from './components/List'
export default class App extends Component {
    state = {
        data: [],
        isFirst: true,//是否第一次打开界面
        isLoading: false,//标示是否处于加载中
        err:''
    }
    updateAppState=(data)=>{
        this.setState(data)
    }
    render() {
        return (
            <div className="container">
                <Search updateAppState={this.updateAppState}/>
                <List {...this.state}/>
            </div>
        )
    }
}
